package br.com.serctam.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

@Entity
@Scope(ScopeType.CONVERSATION)
@AutoCreate
@Name("retornoBB")
public class RetornoBB implements Serializable
{
	@Id
	@GeneratedValue
	private Long id;
	public Long getId() { return this.id; }
	public void setId(Long id) { this.id = id; }
	
	private String nome;
	public String getNome() { return this.nome;	}
	public void setNome(String nome) { this.nome = nome; }
	
	private long size;
	public long getSize() { return this.size; }
	public void setSize(long size) { this.size = size; }
	
	private String contentType;
	public String getContentType() { return this.contentType; }
	public void setContentType(String contentType) { this.contentType = contentType; }
	
	@Lob
	@Column(length = 2147483647)
	@Basic(fetch = FetchType.LAZY)
	private byte[] data;
	public byte[] getData() { return this.data; }
	public void setData(byte[] data) { this.data = data; }
	
	@Temporal(TemporalType.TIMESTAMP)
	private Date dataGravaca;
	public Date getDataGravaca() { return dataGravaca; }
	public void setDataGravaca(Date dataGravaca) { this.dataGravaca = dataGravaca; }
	
	

}
